package com.goldcn.order.dao;

import com.goldcn.order.dto.UserCommissionDto;
import com.goldcn.order.model.CommissionDetail;

import java.util.List;
import java.util.Map;

public interface CommissionDetailMapper {
    int deleteByPrimaryKey(Long commissionDetailId);

    int insert(CommissionDetail record);

    int insertSelective(CommissionDetail record);

    CommissionDetail selectByPrimaryKey(Long commissionDetailId);

    int updateByPrimaryKeySelective(CommissionDetail record);

    int updateByPrimaryKey(CommissionDetail record);

    List<Map<String, Object>> selectByUserID(Long userID);


    List<Map<String, Object>> getCommDetailListByCond(UserCommissionDto commissionDto);


   Map<String, Object> selectBonusTotal(UserCommissionDto commissionDto);




}